:root {
    --brand: #f1f1f1;
    --text: #FFCC99;
    --black: #000;
    --link: #37afff;
    --bg: #fff;
    --section: #f1f1f1;
    --radius: 10px;
    --border: 2px solid var(--text);
    --gap: 20px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .06)
}

html {
    box-sizing: border-box
}

@media (prefers-color-scheme: dark) {

    html,
    body {
        color: #fff;
    }
}

*,
*::before,
*::after {
    box-sizing: inherit
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    color: var(--text);
    line-height: 1.6;
    color: var(--black);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%
}

a {
    color: var(--link);
    text-decoration: none;
    font-weight: 500
}

a:hover {
    color: var(--text)
}

a:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 3px
}

.top-header {
    background: var(--bg);
    color: #00a25f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px clamp(16px, 4vw, 50px);
    border-bottom: 5px solid var(--text);
    box-shadow: var(--shadow)
}

.content-body {
    display: block;
    padding: 20px
}

.entry-left {
    position: sticky;
    top: 20px;
    align-self: start
}

.image-wrapper img,
img.aligncenter {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    aspect-ratio: auto
}

nav {
    margin-top: 10px;
    margin-right: 30px;
    font-size: clamp(16px, 2.2vw, 20px)
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 40px);
    margin: 0;
    padding: 0
}

nav a {
    color: var(--black);
    transition: color .2s ease
}

nav a:hover {
    color: var(--text)
}

nav p a {
    color: var(--text)
}

nav p a:hover {
    color: var(--black)
}

.header h1 {
    text-align: center;
    color: var(--text);
    margin: 30px 20px;
    font-size: clamp(24px, 4.2vw, 30px)
}

h2,
h3 {
    color: var(--text);
    margin: 0 0 16px
}

h3 {
    color: #ff8c00;
    margin: 15px 0
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0
}

input {
    padding: 14px;
    width: min(700px, 100%);
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 18px;
    text-align: center
}

input:hover {
    color: var(--text)
}

input:focus-visible {
    outline: 3px solid var(--bg);
    outline-offset: 2px
}

button {
    padding: 14px 20px;
    background: var(--text);
    border: none;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    font-size: 18px
}

button:hover {
    filter: brightness(.95)
}

button:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: 2px
}

.entry-content {
    max-width: 950px;
    margin-inline: auto;
    padding: 0
}

body p {
    margin: 0 0 15px
}

.note {
    background: var(--bg);
    border: 1px solid var(--text);
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0
}

.disclaimer {
    font-size: .95rem;
    color: var(--link)
}

ul {
    margin-left: 30px;
    padding-left: 0
}

li {
    margin-bottom: 6px
}

.meta-top {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: var(--brand);
    margin-bottom: 20px
}

.logo {
    border-radius: 10px;
}

.Info {
    text-align: center
}

.bang {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 500px
}

th,
td {
    padding: 8px;
    border: var(--border);
    text-align: center;
    word-break: break-word
}

.watch-button {
    display: block;
    margin: 30px auto;
    padding: 15px 30px;
    background: var(--text);
    color: #fff;
    font-size: 1.15rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: filter .2s ease
}

.watch-button:hover {
    filter: brightness(.95)
}

.watch-button:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: 2px
}

footer {
    background: var(--bg);
    color: var(--black);
    text-align: center;
    padding: 15px;
    margin: 0;
    border-top: 5px solid var(--text)
}

footer p {
    margin: 10px;
    font-weight: 600;
}

.toc-menu {
    position: relative;
    margin-bottom: 0
}

#toc-toggle {
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
    font-weight: 600;
    padding: 0
}

.toc-list {
    display: none;
    position: absolute;
    top: 57px;
    right: -60px;
    background: var(--bg);
    border: 4px solid var(--text);
    border-radius: 10px;
    padding: 10px 15px;
    z-index: 999
}

.toc-list ul {
    display: block;
    width: 200px;
    margin: 0;
    padding: 0;
    list-style: none
}

.toc-list li a {
    font-size: 17px;
    display: block;
    padding: 5px 0;
    color: var(--black)
}

.toc-list li a:hover {
    color: var(--text)
}

@media(max-width:768px) {
    .top-header {
        flex-direction: column;
        gap: 10px
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px
    }

    nav {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

@media(prefers-color-scheme:dark) {
    :root {
        --bg: #1a1a1a;
        --section: #1f1f1f;
        --text: #ffe0c7;
        --border: 2px solid #ffe0c7;
        --link: #9ec3ff;
        --brand: #ff8c00
    }

    footer,
    .top-header {
        color: #000
    }
}